package com.anzia.study_3.slice;

import com.anzia.study_3.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class MainAbility2Slice extends AbilitySlice {

	static final HiLogLabel LOG_LABEL = new HiLogLabel(HiLog.LOG_APP, 0x11102, "MainAbility");

	@Override
	public void onStart(Intent intent) {

		HiLog.info(LOG_LABEL, "============onStart2");

		super.onStart(intent);
		super.setUIContent(ResourceTable.Layout_ability_main2);
	}

	@Override
	protected void onActive() {
		HiLog.info(LOG_LABEL, "============onActive2");

		super.onActive();
	}

	@Override
	protected void onInactive() {
		HiLog.info(LOG_LABEL, "============onInactive2");

		super.onInactive();
	}

	@Override
	protected void onForeground(Intent intent) {
		HiLog.info(LOG_LABEL, "============onForeground2");

		super.onForeground(intent);
	}

	@Override
	protected void onBackground() {
		HiLog.info(LOG_LABEL, "============onBackground2");

		super.onBackground();
	}

	@Override
	protected void onStop() {
		HiLog.info(LOG_LABEL, "============onStop2");

		super.onStop();
	}
}
